package com.aruba.hiltapplication.di.impl

import android.app.Activity
import android.util.Log
import android.widget.Toast
import com.aruba.hiltapplication.interfaces.ICallback
import dagger.hilt.android.qualifiers.ActivityContext
import javax.inject.Inject

/**
 * Created by aruba on 2021/12/7.
 */
class CallbackImpl @Inject constructor(var activity: Activity) : ICallback {
    override fun onSuccess() {
        Log.i("aruba_log", "onSuccess")
        Toast.makeText(activity, "onSuccess", Toast.LENGTH_SHORT).show()
    }

    override fun onFailure() {
        Log.i("aruba_log", "onFailure")
        Toast.makeText(activity, "onFailure", Toast.LENGTH_SHORT).show()
    }
}